﻿create table dbo.RoleMenuButtons (
   RoleMenuButtonId     nvarchar(10)         collate Chinese_PRC_CI_AS not null,
   RoleId               nvarchar(10)         collate Chinese_PRC_CI_AS null,
   FunctionId           nvarchar(10)         collate Chinese_PRC_CI_AS null,
   ControlId            nvarchar(10)         collate Chinese_PRC_CI_AS null,
   constraint PK_RoleMenuButtons primary key (RoleMenuButtonId)
         on "PRIMARY"
)
on "PRIMARY"
go

execute sp_addextendedproperty 'MS_Description', 
   '角色菜单按钮ID',
   'user', 'dbo', 'table', 'RoleMenuButtons', 'column', 'RoleMenuButtonId'
go

execute sp_addextendedproperty 'MS_Description', 
   '角色ID',
   'user', 'dbo', 'table', 'RoleMenuButtons', 'column', 'RoleId'
go

execute sp_addextendedproperty 'MS_Description', 
   '功能ID',
   'user', 'dbo', 'table', 'RoleMenuButtons', 'column', 'FunctionId'
go

execute sp_addextendedproperty 'MS_Description', 
   '按钮ID',
   'user', 'dbo', 'table', 'RoleMenuButtons', 'column', 'ControlId'
go